# $Id: PKGBUILD 86694 2013-03-21 10:52:03Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-device-gsm
pkgver=1.60
pkgrel=1
pkgdesc="Perl extension to interface GSM phones / modems"
arch=('any')
url="http://search.cpan.org/dist/Device-Gsm/"
license=('PerlArtistic')
depends=('perl-device-modem')
provides=('perl-device-gsm-charset' 'perl-device-gsm-networks'
	  'perl-device-gsm-pdu' 'perl-sms-token' 'perl-sms-token-da'
	  'perl-sms-token-dcs' 'perl-sms-token-mr' 'perl-sms-token-oa'
	  'perl-sms-token-pdutype' 'perl-sms-token-pid' 'perl-sms-token-sca'
	  'perl-sms-token-scts' 'perl-sms-token-ud' 'perl-sms-token-vp')
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/C/CO/COSIMO/Device-Gsm-$pkgver.tar.gz")
md5sums=('1a1fa45a9b5415f1149610a06b7ce9c9')

build() {
  cd  $srcdir/Device-Gsm-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  $srcdir/Device-Gsm-$pkgver
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
